package com.example.demo.common;

import com.alibaba.fastjson.JSONObject;
import com.example.demo.common.entity.CrmApiResultVO;
import com.fasterxml.jackson.databind.JsonNode;

import javax.xml.soap.SOAPMessage;

public class Test04 {


    public static void main(String[] args) {

        JSONObject jsonObject = JSONObject.parseObject("{\"code\":200,\"data\":55058,\"message\":\"操作成功\"}");
        System.out.println(jsonObject);

        CrmApiResultVO vo = JSONObject.parseObject("{\"code\":200,\"data\":{\"t\":1},\"message\":\"操作成功\"}", CrmApiResultVO.class);
        System.out.println(vo);
    }
}
